package com.xiegang.serviceMap.service;

import com.xiegang.internalcommon.dto.ResponseResult;
import com.xiegang.internalcommon.response.DriectionResponse;
import com.xiegang.serviceMap.remote.AmapServiceClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author xieGang
 * @description
 * @date 2023/3/12 16:05
 **/

@Service
public class DriectionService {

    @Autowired
    private AmapServiceClient amapServiceClient;

    public ResponseResult driving(String depLongitude,String deplatitude,String destLongitude,String destLatiude){

        DriectionResponse driectionResponse = amapServiceClient.driection(depLongitude, deplatitude, destLongitude, destLatiude);

        return ResponseResult.success(driectionResponse);
    }
}
